package com.zxb.base.watch.service;
import com.zxb.base.watch.util.WatchMap;
import com.zxb.base.watch.vo.WatchVo;
import org.springframework.stereotype.Service;

/**
 * @author Zxb
 */
@Service
public class WatchConditionServiceImpl implements WatchConditionService{
    @Override
    public Boolean continueWatch(WatchVo watchVo) {
        String watchCode = watchVo.getCode();
        if(!WatchMap.contains(watchCode)){
            return false;
        }
        watchVo = WatchMap.getVo(watchCode);
        return watchVo.getIsOpen();
    }
}
